package com.hrt.datasender.dataschedule;

import org.quartz.JobExecutionContext;

import com.btcode.common.MyLog;
import com.btcode.log.ILog;
import com.btcode.schedule.SingleInstanceJob;
import com.hrt.datasender.mq.MqKit;
import com.hrt.datasender.mq.model.PacketModel;

public class OneNetScheduler extends SingleInstanceJob {

	@SuppressWarnings("unused")
	private ILog log;
		
	@Override
	public void initJob(JobExecutionContext arg0) {

		log = MyLog.getInstance().getLogger(getClass());
	}

	@Override
	public void myExecute(JobExecutionContext arg0) {
		
		String re = "AT+MIPLUPDATE=0,86400,1";
		
		PacketModel packetModel = new PacketModel();
		
		packetModel.setMsg(re);
		
		MqKit.productMsgToRefreshRegisterMQ(packetModel);
	}

}
